package com.example.demo.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
//生死簿
@NoArgsConstructor
@Data
public class Lifebook {

    @JsonProperty("id")
    private Integer id;
    @JsonProperty("name")
    private String name;
    @JsonProperty("uuid")
    private String uuid;
    @JsonProperty("year")
    private String year;
    @JsonProperty("status")
    private Integer status;
    @JsonProperty("birthday")
    private String birthday;
    @JsonProperty("deathday")
    private String deathday;
    @JsonProperty("gender")
    private Integer gender;
    @JsonProperty("birthplace")
    private String birthplace;
    @JsonProperty("deathplace")
    private String deathplace;
    @JsonProperty("photo")
    private String photo;
    @JsonProperty("money")
    private Integer money;
    @JsonProperty("yinmoney")
    private Integer yinmoney;
    @JsonProperty("child")
    private Integer child;
    @JsonProperty("longevity")
    private Integer longevity;
    @JsonProperty("type")
    private Integer type;
    @JsonProperty("reason")
    private String reason;
    @JsonProperty("marriage")
    private String marriage;
    @JsonProperty("event")
    private String event;
    @JsonProperty("attribute")
    private String attribute;
    @JsonProperty("description")
    private String description;
    @JsonProperty("characterinfo")
    private String characterinfo;
    @JsonProperty("yin")
    private Integer yin;
    @JsonProperty("yang")
    private Integer yang;
    @JsonProperty("reward")
    private String reward;
    @JsonProperty("afterlife")
    private String afterlife;
    @JsonProperty("reincarnation")
    private String reincarnation;
    @JsonProperty("punishment")
    private Object punishment;
    @JsonProperty("reaperid")
    private Integer reaperid;
    @JsonProperty("judgeid")
    private Integer judgeid;
    @JsonProperty("punishmentid")
   private Integer punishmentid;
    @JsonProperty("reincarnationid")
    private Integer reincarnationid;
    @JsonProperty("create_time")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    @JsonProperty("set")
    private Integer set;


    public Lifebook(Integer id, String name, String uuid, String year, Integer status, String birthday, String deathday, Integer gender, String birthplace, String deathplace, String photo, Integer money, Integer yinmoney, Integer child, Integer longevity, Integer type, String reason, String marriage, String event, String attribute, String description, String characterinfo, Integer yin, Integer yang, String reward, String afterlife, String reincarnation, Object punishment, Integer reaperid, Integer judgeid, Integer punishmentid, Integer reincarnationid, LocalDateTime createTime, Integer set) {
        this.id = id;
        this.name = name;
        this.uuid = uuid;
        this.year = year;
        this.status = status;
        this.birthday = birthday;
        this.deathday = deathday;
        this.gender = gender;
        this.birthplace = birthplace;
        this.deathplace = deathplace;
        this.photo = photo;
        this.money = money;
        this.yinmoney = yinmoney;
        this.child = child;
        this.longevity = longevity;
        this.type = type;
        this.reason = reason;
        this.marriage = marriage;
        this.event = event;
        this.attribute = attribute;
        this.description = description;
        this.characterinfo = characterinfo;
        this.yin = yin;
        this.yang = yang;
        this.reward = reward;
        this.afterlife = afterlife;
        this.reincarnation = reincarnation;
        this.punishment = punishment;
        this.reaperid = reaperid;
        this.judgeid = judgeid;
        this.punishmentid = punishmentid;
        this.reincarnationid = reincarnationid;
        this.createTime = createTime;
        this.set = set;
    }

    public Lifebook(String name, String uuid, String year, Integer status, String birthday, String deathday, Integer gender, String birthplace, String deathplace, String photo, Integer money, Integer yinmoney, Integer child, Integer longevity, Integer type, String reason, String marriage, String event, String attribute, String description, String characterinfo, Integer yin, Integer yang, String reward, String afterlife, String reincarnation, Object punishment, Integer reaperid, Integer judgeid, Integer punishmentid, Integer reincarnationid, LocalDateTime createTime) {
        this.name = name;
        this.uuid = uuid;
        this.year = year;
        this.status = status;
        this.birthday = birthday;
        this.deathday = deathday;
        this.gender = gender;
        this.birthplace = birthplace;
        this.deathplace = deathplace;
        this.photo = photo;
        this.money = money;
        this.yinmoney = yinmoney;
        this.child = child;
        this.longevity = longevity;
        this.type = type;
        this.reason = reason;
        this.marriage = marriage;
        this.event = event;
        this.attribute = attribute;
        this.description = description;
        this.characterinfo = characterinfo;
        this.yin = yin;
        this.yang = yang;
        this.reward = reward;
        this.afterlife = afterlife;
        this.reincarnation = reincarnation;
        this.punishment = punishment;
        this.reaperid = reaperid;
        this.judgeid = judgeid;
        this.punishmentid = punishmentid;
        this.reincarnationid = reincarnationid;
        this.createTime = createTime;
    }
}
